package n.d.l.svn.bean;

import java.io.BufferedReader;
import java.io.IOException;

/**
 * 命令执行响应类.
 * @author N
 *
 */
public class SysCommandResponse {

	private Process proces;
	private BufferedReader reader;

	public Process getProces() {
		return proces;
	}

	public void setProces(Process proces) {
		this.proces = proces;
	}

	public BufferedReader getReader() {
		return reader;
	}

	public void setReader(BufferedReader reader) {
		this.reader = reader;
	}

	/**
	 * 资源关闭.
	 */
	public void resoucesClose() {
		try {
			if (reader != null) {
				reader.close();
			}
			if(proces != null){
				proces.destroy();
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

}
